import request from '@/utils/request'

// 获取彩屏列表
export function getPageData(data: any) {
  return request({
    url: '/CSInfo/GetPageData',
    method: 'post',
    data,
  })
}

// 删除
export function deltemp(data: any) {
  return request({
    url: '/CSStock/delcss',
    method: 'post',
    data,
  })
}

// wifi批量设置
export function editwifibatch(data: any) {
  return request({
    url: '/CSInfo/editwifibatch',
    method: 'post',
    data,
  })
}

// 获取库存彩屏列表
export function getStockPageData(data: any) {
  return request({
    url: '/CSStock/GetPageData',
    method: 'post',
    data,
  })
}

// 获取公司列表
export function GetCompany(data: any) {
  return request({
    url: '/Base_Company/GetPageData',
    method: 'post',
    data,
  })
}

// 编辑彩屏库存
export function csstockedit(data: any) {
  return request({
    url: '/CSStock/csstockedit',
    method: 'post',
    data,
  })
}

// 获取彩屏信息
export function getcss(data: any) {
  return request({
    url: '/CSStock/getcss',
    method: 'post',
    data,
  })
}

// 出库
export function outputcs(data: any) {
  return request({
    url: '/CSStock/outputcs',
    method: 'post',
    data,
  })
}

// 彩屏库存批量添加
export function csstockbatch(data: any) {
  return request({
    url: '/CSStock/csstockbatch',
    method: 'post',
    data,
  })
}

// 重推
export function editcssendbatch(data: any) {
  return request({
    url: '/CSInfo/editcssendbatch',
    method: 'post',
    data,
  })
}

// 批量设置 mqtt
export function editmqttbatch(data: any) {
  return request({
    url: '/CSInfo/editmqttbatch',
    method: 'post',
    data,
  })
}

// 批量清除设备缓存
export function editcmdbatch(data: any) {
  return request({
    url: '/CSInfo/editcmdbatch',
    method: 'post',
    data,
  })
}

// 批量设置切换模式
export function editchangetempbatch(data: any) {
  return request({
    url: '/CSInfo/editchangetempbatch',
    method: 'post',
    data,
  })
}

// 彩屏机应用程序升级
export function editappupgradebatch(data: any) {
  return request({
    url: '/CSInfo/editappupgradebatch',
    method: 'post',
    data,
  })
}

// 固件升级 切换供应商
export function editotaupgradebatch(data: any) {
  return request({
    url: '/CSInfo/editotaupgradebatch',
    method: 'post',
    data,
  })
}

// 设置音量
export function editvolumebatch(data: any) {
  return request({
    url: '/CSInfo/editvolumebatch',
    method: 'post',
    data,
  })
}

// 彩屏编辑
export function csedit(data: any) {
  return request({
    url: '/CSInfo/csedit',
    method: 'post',
    data,
  })
}

// 获取彩屏模板详情
export function gettemp(data: any) {
  return request({
    url: '/CSTemplate/gettemp',
    method: 'post',
    data,
  })
}

// 保存彩屏模板详情
export function savetemp(data: any) {
  return request({
    url: '/CSTemplate/save',
    method: 'post',
    data,
  })
}

// 获取彩屏模板列表
export function getCsPageData(data: any) {
  return request({
    url: '/CSTemplate/GetPageData',
    method: 'post',
    data,
  })
}

// 保存彩屏模板详情
export function delCstemp(data: any) {
  return request({
    url: '/CSTemplate/deltemp',
    method: 'post',
    data,
  })
}

// 获取商品列表
// export function getProductsData(data: any) {
//   return request({
//     url: '/Products/GetPageData',
//     method: 'post',
//     data,
//   })
// }

// 验证彩屏机标识号与编码是否存在
export function checkcss(data: any) {
  return request({
    url: '/CSStock/checkcss',
    method: 'post',
    data,
  })
}

// 获取彩屏机版本列表
export function GetCsVersionPageData(data: any) {
  return request({
    url: '/CSVersion/GetPageData',
    method: 'post',
    data,
  })
}

// 彩屏机升级版本编辑
export function editcsver(data: any) {
  return request({
    url: '/CSVersion/editcsver',
    method: 'post',
    data,
  })
}

// 彩屏机升级版本删除
export function delcsver(data: any) {
  return request({
    url: '/CSVersion/delcsver',
    method: 'post',
    data,
  })
}

// 彩屏选择商品组合的明细
export function getmuprolist(data: any) {
  return request({
    url: '/CSInfo/getmuprolist',
    method: 'post',
    data,
  })
}

// 彩屏绑定广告视频
export function bindcsvideo(data: any) {
  return request({
    url: '/CSInfo/bindcsvideo',
    method: 'post',
    data,
  })
}

// 彩屏绑定广告视频详情
export function getcsvmvideo(data: any) {
  return request({
    url: '/CSInfo/getcsvmvideo',
    method: 'post',
    data,
  })
}

// 彩屏绑定广告图片
export function bindcsimage(data: any) {
  return request({
    url: '/CSInfo/bindcsimage',
    method: 'post',
    data,
  })
}

// 彩屏绑定广告图片详情
export function getcsvmimg(data: any) {
  return request({
    url: '/CSInfo/getcsvmimg',
    method: 'post',
    data,
  })
}

// 彩屏在线列表
export function getcsonlinelog(data: any) {
  return request({
    url: '/CSInfo/getcsonlinelog',
    method: 'post',
    data,
  })
}

// 彩屏在线job
export function ColorTerminalOnLineJob() {
  return request({
    url: '/Sys_QuartzOptions/ColorTerminalOnLineJob',
    method: 'post',
  })
}

// -------------  【商品管理】  -------------

// 【商品管理】数据分页
export function productsPageData(data: any) {
  return request({
    url: '/Products/GetPageData',
    method: 'post',
    data,
  })
}

// 【商品管理】删除商品
export function delpro(data: any) {
  return request({
    url: '/Products/delpro',
    method: 'post',
    data,
  })
}

// 【商品管理】获取商品详情
export function getpro(data: any) {
  return request({
    url: '/Products/getpro',
    method: 'post',
    data,
  })
}

// 【商品管理】编辑添加商品
export function proedit(data: any) {
  return request({
    url: '/Products/proedit',
    method: 'post',
    data,
  })
}

// -------------  彩屏机开机图  -------------

// 彩屏机开机图添加编辑
export function editlogoimg(data: any) {
  return request({
    url: '/CSLogoImage/editlogoimg',
    method: 'post',
    data,
  })
}

// 彩屏机开机图查看
export function getlogoimage(data: any) {
  return request({
    url: '/CSLogoImage/getlogoimage',
    method: 'post',
    data,
  })
}

// 彩屏机开机图删除
export function dellogoimage(data: any) {
  return request({
    url: '/CSLogoImage/dellogoimage',
    method: 'post',
    data,
  })
}

// 彩屏机开机图上传 code=cslogoimg(开机图);code=csadvimg(广告图片);code=csadwvideo(广告视频) code=cstempimg (彩屏模板背景) code=csproimg(彩屏商品默认图)
export function CSLogoUpload(data: any) {
  return request({
    url: '/CSLogoImage/CSLogoUpload',
    method: 'post',
    data,
  })
}

// 彩屏机开机图数据分页
export function LogoImgGetPageData(data: any) {
  return request({
    url: '/CSLogoImage/GetPageData',
    method: 'post',
    data,
  })
}

// -------------  彩屏机广告视频  -------------

// 彩屏机广告视频数据分页
export function CSVideoGetPageData(data: any) {
  return request({
    url: '/CSLogoImage/CSVideoGetPageData',
    method: 'post',
    data,
  })
}

// 彩屏机广告视频新增/编辑
export function editcsvideo(data: any) {
  return request({
    url: '/CSLogoImage/editcsvideo',
    method: 'post',
    data,
  })
}

// 彩屏机广告视频详情
export function getcsvideo(data: any) {
  return request({
    url: '/CSLogoImage/getcsvideo',
    method: 'post',
    data,
  })
}

// 彩屏机广告视频删除
export function delcsvideo(data: any) {
  return request({
    url: '/CSLogoImage/delcsvideo',
    method: 'post',
    data,
  })
}

// -------------  彩屏机广告图片  -------------

// 彩屏机广告图片分页数据
export function CSImgGetPageData(data: any) {
  return request({
    url: '/CSLogoImage/CSImgGetPageData',
    method: 'post',
    data,
  })
}

// 彩屏机广告图片编辑
export function editcsimg(data: any) {
  return request({
    url: '/CSLogoImage/editcsimg',
    method: 'post',
    data,
  })
}

// 彩屏机广告图片删除
export function delcsimg(data: any) {
  return request({
    url: '/CSLogoImage/delcsimg',
    method: 'post',
    data,
  })
}

// 彩屏机广告图片详情
export function getcsimg(data: any) {
  return request({
    url: '/CSLogoImage/getcsimg',
    method: 'post',
    data,
  })
}

// -------------  彩屏机背景图  -------------

// 彩屏机背景图分页数据
export function CSTempGetPageData(data: any) {
  return request({
    url: '/CSTemplateImg/GetPageData',
    method: 'post',
    data,
  })
}

// 彩屏机背景图新增编辑
export function editcstempimg(data: any) {
  return request({
    url: '/CSTemplateImg/editcstempimg',
    method: 'post',
    data,
  })
}

// 彩屏机背景图新增删除
export function delcsvertempimg(data: any) {
  return request({
    url: '/CSTemplateImg/delcsver',
    method: 'post',
    data,
  })
}

// -------------  彩屏机商品默认图片  -------------

// 彩屏机商品默认图片编辑
export function editproimg(data: any) {
  return request({
    url: '/CSLogoImage/editproimg',
    method: 'post',
    data,
  })
}

// 彩屏机商品默认图片详情
export function getproimg(data: any) {
  return request({
    url: '/CSLogoImage/getproimg',
    method: 'post',
    data,
  })
}

// 彩屏机商品默认图片删除
export function delproimg(data: any) {
  return request({
    url: '/CSLogoImage/delproimg',
    method: 'post',
    data,
  })
}

// 彩屏机商品默认图片数据分页
export function ProImgGetPageData(data: any) {
  return request({
    url: '/CSLogoImage/ProImgGetPageData',
    method: 'post',
    data,
  })
}

// -------------  彩屏机公共模板  -------------

// 彩屏机公共模板保存
export function pubsave(data: any) {
  return request({
    url: '/CSTemplate/pubsave',
    method: 'post',
    data,
  })
}

// 彩屏机公共模板详情
export function getpubtemp(data: any) {
  return request({
    url: '/CSTemplate/getpubtemp',
    method: 'post',
    data,
  })
}

// 彩屏机公共模板删除
export function delpubtemp(data: any) {
  return request({
    url: '/CSTemplate/delpubtemp',
    method: 'post',
    data,
  })
}

// 彩屏机公共模板数据分页
export function PTGetPageData(data: any) {
  return request({
    url: '/CSTemplate/PTGetPageData',
    method: 'post',
    data,
  })
}

// 彩屏机公共模板复制
export function copypubtemp(data: any) {
  return request({
    url: '/CSTemplate/copypubtemp',
    method: 'post',
    data,
  })
}

// -------------  彩屏机公共模板  -------------

// 【彩屏接口记录管理】详情
export function getapilog(data: any) {
  return request({
    url: '/CSInfo/getapilog',
    method: 'post',
    data,
  })
}

// 【彩屏接口记录管理】数据分页
export function APILogGetPageData(data: any) {
  return request({
    url: '/CSInfo/APILogGetPageData',
    method: 'post',
    data,
  })
}

// 商品导出
export function Export(data: any) {
  return request({
    url: '/Products/Export ',
    method: 'post',
    data,
    headers: { 'Content-Type': 'application/json; application/octet-stream' },
    responseType: 'arraybuffer',
  })
}

// 下载商品模板
export function DownLoadTemplate() {
  return request({
    url: '/Products/DownLoadTemplate',
    method: 'get',
    headers: { 'Content-Type': 'application/json; application/octet-stream' },
    responseType: 'arraybuffer',
  })
}

// 库存模板导出
export function StockExport(data: any) {
  return request({
    url: '/CSStock/Export ',
    method: 'post',
    data,
    headers: { 'Content-Type': 'application/json; application/octet-stream' },
    responseType: 'arraybuffer',
  })
}

// 下载库存模板
export function StockDownLoadTemplate() {
  return request({
    url: '/CSStock/DownLoadTemplate',
    method: 'get',
    headers: { 'Content-Type': 'application/json; application/octet-stream' },
    responseType: 'arraybuffer',
  })
}

//  ----------------------- 商品特价单 --------------------------

// 添加
export function SpecialPriceAddData(data: any) {
  return request({
    url: '/SpecialPrice/AddData',
    method: 'post',
    data,
  })
}

// 编辑
export function SpecialPriceUpdateData(data: any) {
  return request({
    url: '/SpecialPrice/UpdateData',
    method: 'post',
    data,
  })
}

// 删除
export function SpecialPriceDelData(data: any) {
  return request({
    url: '/SpecialPrice/DelData',
    method: 'post',
    data,
  })
}

// 数据分页
export function SpecialPriceGetPageData(data: any) {
  return request({
    url: '/SpecialPrice/GetPageData',
    method: 'post',
    data,
  })
}

// 商品特价单详情
export function SpecialPriceGetDetailPageData(data: any) {
  return request({
    url: '/SpecialPrice/GetDetailPageData',
    method: 'post',
    data,
  })
}

// 彩屏临时播放列表
export function CSTempPlayList(data: any) {
  return request({
    url: '/CSTempPlay/GetPageData',
    method: 'post',
    data,
  })
}

// 彩屏临时播放设置
export function settempplay(data: any) {
  return request({
    url: '/CSTempPlay/settempplay',
    method: 'post',
    data,
  })
}

// 彩屏批量设置显示内部编码
export function editbarcodeshowbatch(data: any) {
  return request({
    url: '/CSInfo/editbarcodeshowbatch',
    method: 'post',
    data,
  })
}

// 彩屏在线列表数据
export function GetCSonlinePageData(data: any) {
  return request({
    url: '/CSInfo/GetCSonlinePageData',
    method: 'post',
    data,
  })
}

// 彩屏回调列表
export function CSCBGetPageData(data: any) {
  return request({
    url: '/CSInfo/CSCBGetPageData',
    method: 'post',
    data,
  })
}

// 彩屏库存已出库的退库
export function refundcs(data: any) {
  return request({
    url: '/CSStock/refundcs',
    method: 'post',
    data,
  })
}

//  批量设置工程模板
export function editdebugshow(data: any) {
  return request({
    url: '/CSInfo/editdebugshow',
    method: 'post',
    data,
  })
}

//  开关机屏幕亮度设置
export function editpowerstate(data: any) {
  return request({
    url: '/CSInfo/editpowerstate',
    method: 'post',
    data,
  })
}

//  设备批量信息查询
export function editdevice(data: any) {
  return request({
    url: '/csinfo/editdevice',
    method: 'post',
    data,
  })
}

//  设备重启
export function editreboot(data: any) {
  return request({
    url: '/CSInfo/editreboot',
    method: 'post',
    data,
  })
}

//  设备初始化
export function editinit(data: any) {
  return request({
    url: '/CSInfo/editinit',
    method: 'post',
    data,
  })
}

//  标签接口日志
export function APGetPageData(data: any) {
  return request({
    url: '/Wms_ESLInfo/APGetPageData',
    method: 'post',
    data,
  })
}

//  设备更新背景图
export function editbgimg(data: any) {
  return request({
    url: '/CSInfo/editbgimg',
    method: 'post',
    data,
  })
}

//  获取设备系统日志
export function editsyslog(data: any) {
  return request({
    url: '/CSInfo/editsyslog',
    method: 'post',
    data,
  })
}

//  服务端剔除设备连接
export function editkickout(data: any) {
  return request({
    url: '/CSInfo/editkickout',
    method: 'post',
    data,
  })
}

//  设备参数设置
export function editsetdev(data: any) {
  return request({
    url: '/CSInfo/editsetdev',
    method: 'post',
    data,
  })
}

//  设备重连间隔
export function editsetrecon(data: any) {
  return request({
    url: '/CSInfo/editsetrecon',
    method: 'post',
    data,
  })
}

//  商城订单列表
export function OrderGetPageData(data: any) {
  return request({
    url: '/order/GetPageData',
    method: 'post',
    data,
  })
}

//  订单退款审核
export function wxcreaterefund(data: any) {
  return request({
    url: '/order/wxcreaterefund',
    method: 'post',
    data,
  })
}

//  管理员主动发起退款
export function createorderrefunds(data: any) {
  return request({
    url: '/order/createorderrefunds',
    method: 'post',
    data,
  })
}

//  管理员代理审核列表
export function augentgetpagedata(data: any) {
  return request({
    url: '/order/augentgetpagedata',
    method: 'post',
    data,
  })
}

//  管理员代理审核
export function audituagent(data: any) {
  return request({
    url: '/order/audituagent',
    method: 'post',
    data,
  })
}

//  开机LOGO图片设置
export function editsetbootlogo(data: any) {
  return request({
    url: '/CSInfo/editsetbootlogo',
    method: 'post',
    data,
  })
}

//  小程序代理商订单金额管理列表
export function getpagedata_uagentfeel(data: any) {
  return request({
    url: '/order/getpagedata_uagentfeel',
    method: 'post',
    data,
  })
}

//  添加为分账人
export function addprofituser(data: any) {
  return request({
    url: '/order/addprofituser',
    method: 'post',
    data,
  })
}

//  删除分账人
export function delprofituser(data: any) {
  return request({
    url: '/order/delprofituser ',
    method: 'post',
    data,
  })
}

//  录入快递单号
export function wxeditreceivestatus(data: any) {
  return request({
    url: '/order/wxedittrackno',
    method: 'post',
    data,
  })
}

//  物资库存管理列表
export function WmsGetPageData(data: any) {
  return request({
    url: '/Wms_ItemStock/GetPageData',
    method: 'post',
    data,
  })
}

// 物资库存管理下载

export function Wms_ItemStockDown(data: any) {
  return request({
    url: '/Wms_ItemStock/DownLoadTemplate',
    method: 'get',
    headers: { 'Content-Type': 'application/json; application/octet-stream' },
    responseType: 'arraybuffer',
  })
}

// 物资库存导出

export function Wms_ItemStockExport(data: any) {
  return request({
    url: '/Wms_ItemStock/Export',
    method: 'post',
    headers: { 'Content-Type': 'application/json; application/octet-stream' },
    responseType: 'arraybuffer',
    data,
  })
}

// 物资库存列表
export function WmsGetPageData02(data: any) {
  return request({
    url: '/Wms_ItemStock/GetPageData02',
    method: 'post',
    data,
  })
}

// 物资记录列表
export function Wms_InOuStockGetPageData(data: any) {
  return request({
    url: '/Wms_InOuStock/GetPageData',
    method: 'post',
    data,
  })
}

// 物资记录导出
export function WmsExport(data: any) {
  return request({
    url: '/Wms_InOuStock/Export',
    method: 'post',
    data,
    headers: { 'Content-Type': 'application/json; application/octet-stream' },
    responseType: 'arraybuffer',
  })
}

// 删除物资库存
export function delstock(data: any) {
  return request({
    url: '/Wms_ItemStock/delstock',
    method: 'post',
    data,
  })
}

// 删除物资记录
export function delInOuStock(data: any) {
  return request({
    url: '/Wms_InOuStock/delio',
    method: 'post',
    data,
  })
}

// 批量修改物资名称
export function batchitemname(data: any) {
  return request({
    url: '/Wms_ItemStock/batchitemname',
    method: 'post',
    data,
  })
}

// 物资出入库汇总列表数据
export function GetPageDataInOutItemReport(data: any) {
  return request({
    url: '/Wms_InOuStock/GetPageDataInOutItemReport',
    method: 'post',
    data,
  })
}

// 领用发料单位汇总列表数据
export function GetPageDataInOutUnitReport(data: any) {
  return request({
    url: '/Wms_InOuStock/GetPageDataInOutUnitReport',
    method: 'post',
    data,
  })
}

// 批量删除物资库存数据
export function batchdelstock(data: any) {
  return request({
    url: '/Wms_ItemStock/batchdelstock',
    method: 'post',
    data,
  })
}

// 批量修改部门
export function batchdeptid(data: any) {
  return request({
    url: '/Wms_ItemStock/batchdeptid',
    method: 'post',
    data,
  })
}

// PDA列表
export function PDAGetPageData(data: any) {
  return request({
    url: '/PDA/GetPageData',
    method: 'post',
    data,
  })
}

// 井号统计物资数据
export function GetPageData_JH(data: any) {
  return request({
    url: '/Wms_InOuStock/GetPageData_JH',
    method: 'post',
    data,
  })
}

// 批量修改到付时间
export function batcharrivaltime(data: any) {
  return request({
    url: '/Wms_ItemStock/batcharrivaltime',
    method: 'post',
    data,
  })
}

// 物资出入库汇总导出
export function ExportInOutItemReport(data: any) {
  return request({
    url: '/Wms_InOuStock/ExportInOutItemReport',
    method: 'post',
    headers: { 'Content-Type': 'application/json; application/octet-stream' },
    responseType: 'arraybuffer',
    data,
  })
}

// 物资统计汇总
export function GetPageDataInOutStockSumReport(data: any) {
  return request({
    url: '/Wms_InOuStock/GetPageDataInOutStockSumReport',
    method: 'post',
    data,
  })
}

// 物资统计汇总导出
export function ExportInOutStockSumReport(data: any) {
  return request({
    url: '/Wms_InOuStock/ExportInOutStockSumReport',
    method: 'post',
    headers: { 'Content-Type': 'application/json; application/octet-stream' },
    responseType: 'arraybuffer',
    data,
  })
}

// 修改库存数量
export function correctsave(data: any) {
  return request({
    url: '/Wms_InOuStock/correctsave',
    method: 'post',
    data,
  })
}

// 生产物资库存数量
export function correctstock(data: any) {
  return request({
    url: '/Wms_ItemStock/correctstock',
    method: 'post',
    data,
  })
}

// 物资记录中查看出库物资用途井号明细
export function getpickdinfolist(data: any) {
  return request({
    url: '/Wms_PickingBillMaster/getpickdinfolist',
    method: 'post',
    data,
  })
}

// 批量修改单位
export function batchwhunit(data: any) {
  return request({
    url: '/Wms_ItemStock/batchwhunit',
    method: 'post',
    data,
  })
}

// 物资发料台账列表
export function GetPageDataOutBillAudit(data: any) {
  return request({
    url: '/Wms_OutboundBillMaster/GetPageDataOutBillAudit',
    method: 'post',
    data,
  })
}

// 物料台账导出
export function ExportOutBillAudit(data: any) {
  return request({
    url: '/Wms_OutboundBillMaster/ExportOutBillAudit',
    method: 'post',
    data,
    headers: { 'Content-Type': 'application/json; application/octet-stream' },
    responseType: 'arraybuffer',
  })
}

// 物资入库台账列表
export function GetPageDataInBillAudit(data: any) {
  return request({
    url: '/Wms_IncomeBillMaster/GetPageDataInBillAudit',
    method: 'post',
    data,
  })
}

// 物料入库台账导出
export function ExportInBillAudit(data: any) {
  return request({
    url: '/Wms_IncomeBillMaster/ExportInBillAudit',
    method: 'post',
    data,
    headers: { 'Content-Type': 'application/json; application/octet-stream' },
    responseType: 'arraybuffer',
  })
}

// 修改物料编码
export function edititemcode(data: any) {
  return request({
    url: '/Wms_ItemStock/edititemcode',
    method: 'post',
    data,
  })
}
